package com.xwh.week1;

public class Practice5 {
    public static void main(String[] args) {
        int num = 2;

        for(int i = 3; i <= 20; ++i) {
            num = method(num, i);
        }

        System.out.println(num);
    }

    public static int method(int a, int b) {
        int max;
        for(max = a > b ? a : b; max % a != 0 || max % b != 0; ++max) {
        }

        return max;
    }
}
